package com.gite.nouette.admin.implementation.integrator.director;

import com.gite.nouette.admin.contract.integrator.builder.IBuilderHandlerModule;
import com.gite.nouette.admin.contract.integrator.director.IDirectorHandlerModule;
import com.gite.nouette.admin.contract.model.IHandlerModule;

public class DirectorHandlerModuleImpl implements IDirectorHandlerModule {
	private IBuilderHandlerModule builder = null;

	@Override
	public IBuilderHandlerModule getBuilder() {
		return this.builder;
	}

	@Override
	public void setBuilder(IBuilderHandlerModule builder) {
		this.builder = builder;
	}

	@Override
	public IHandlerModule getProduct() {
		return getBuilder().getProduct();
	}

	@Override
	public void constructProduct() {
		getBuilder().createNewProduct();
		// commands
	}

}
